Generating Particles from Script

Hi all

I want to create a particle system for an object through a python script. I then want to go on and create the initial particles (at t0) for this system through the script (i.e. create particle 0001 at position x1, y1, z1, create particle 0002 at position x2, y2, z2, …).

Once the system is created, I want to be able to use the particle system as I would any other, i.e. subject it to gravity and other forces.

Can this be done and if so, can anyone give me some input as to how to achieve this?

Cheers

Hamu