PEP8 and comments to engine.py