py: better pep8 compliance

executed: pep8 --ignore=E251,E221,E501,E241 py/
codecompliance: added style checking for python