use [Python PEP8 Autoformat](https://bitbucket.org/StephaneBunel/pythonpep8autoformat) reformat Python source code, fix bug