minor refactors - mostly PEP8 and pythonic flow

This pull request includes mostly PEP8 best practices and conversions of some code to be more pythonic. I hope to be able to help some more in the future! If you'd like me to break this up into smaller requests, maybe per file let me know.