Ran this through pep8 for shits and giggles.  I may revisit this one day and rewrite this.