Install autopep8
pip install autopep8

Run
autopep8 -i myProjectCode.py

Ref: https://pypi.org/project/autopep8/