Reformat to be more inline with PEP

I followed some of PyCharm’s suggestions to make my code more inline with PEP style guidelines, and added some additional comments while I was at it.