Cleaning up code for Py2.7 & Py3.x; Cleaning up pylinting and flake8

Squeaky Clean :)