Pep8: some script fixes

Some pep8 script cleanups, fixed some broken stuff and redid some of the bash wrapper so that its clearer for anyone wanting to add/remove things.