Edited the python for readability and cleanliness. Added some error handling.
Merge pull request #1 from lkvnstrs/readability_updates

Edited the python for readability and cleanliness.