Removal of non python code from python engine file.