Fixed some problems with calling command line python from php