Changes made to python file to allow for compiling