successful refactor + script is now fully PEP8 compliant.
cleaned up the script a bit more
more minor refactoring
more refactoring
fully pep8 compliant