The baking part is where you are most likely to damage your headlights. If you want to do it the safe but long way, you use a heat gun and a damp piece of cardboard and sloooowly pry it open as you go.
For resealing them, I would use a combination of the original sealant plus that horrible black rubber butyl sealant stuff (makes a huge mess but works).
__________________
|