My snakes a usually pretty hungry right after their shed. He probably struck at you because he's hungry. I'm not sure I understand your question about the light bulb. There would be no benefit to painting a light bulb. What is the purpose of doing this? I can see this possibly starting a fire, if the paint would ignite.
Jim Smith