Make pep8 compliant and compatible with pycharm

added whatever state is necessary for pycharm to track the project, and
then used the IDE's code analysis features to make the whole thing
compliant with pep8 guidelines!  Woot!