Added ability to call from another python program using the _file parameter in the run() function