Added doc string
Moved imports onto seprate lines
Added spaces around operators
Moved returns to own lines, removed all single line but not in line if statements
Made comments consitent across file
Removed all trailing whitespace
Added pep8 required blank lines
more pep8 stuff
No more multiple statements on one line
Continuation line was under indented