Установите Autopep8
$ pip install --upgrade autopep8
Selfish Seahorse
$ pip install --upgrade autopep8
$ autopep8 --in-place --aggressive --aggressive <filename>