Did you add those python commands to the plugin?
If so, try making a small python script to do the same thing and run it manually. If that doesn't work then there's something wrong with the python install itself. If it does, then it's something to do with the way the plugin runs python (such as the user account it uses)
If so, try making a small python script to do the same thing and run it manually. If that doesn't work then there's something wrong with the python install itself. If it does, then it's something to do with the way the plugin runs python (such as the user account it uses)