Can you make sparkles of light with python?

Can you make sparkles of light with python?

Would this be complex?

What do you mean by sparkles of light? Particles? Meshes with Halos? Lamps?

Depending on what you want to do is going to determine feasibility and complexity.

I think leaf means pixie dust?

Yes, dragons and pixes and UFO elfs too!

Small, half a second flashes.

Right, but what method:

Do you mean lamp flashes or halo flashes or something else?

To answer you original question, if its either of the two above its possible by using the IPO interface in the API. It may be possible with other methods as well.