Changed the way python is called in executables
Several debugging changes made after tests on guillimin
Bug fixes after testing on guillimin