Found this stackoverflow question while searching for a pep8 style enforcement tool when taking over an existing (legacy) project.
https://github.com/hhatto/autopep8
autopep8 -i yourpythonsourcefile.py
will automagically convert all the source code to confirm with pep8. Tried it on my legacy project and it works great. So I thought I would update this answer here in SO.