The venom is forced out in a spray aimed at the eyes of the attacker. While the attacker deals with painfully burning eyes, the snakes have time to get away. Young snakes use an egg tooth to break out out their shell. Most snakes, including pythons, lay eggs. The young have an egg tooth that they use to break out of their leathery shell.
Some snakes incubate their eggs by coiling their bodies on the nest of eggs and shivering.
The shivering raises the temperature around the eggs. Other snakes, including boas, give live birth. Where it is cold it gives live birth and where it is warm, it lays eggs. Whether the young are born live or hatched out, once born the tiny snakes are on their own. Snake parents do not raise their young.