Bug fixes in python modules + int replaced by long long in particles.

If you're restructuring the code, mb there is no need to merge particles, but python modules should be replaced, otherwise parallel processing will be impossible.