How to change particle system file through script?

I want to change the particle system and update them with other particle files through script, is there anyone who knows ?