Fix pyfile call for paths with spaces