Minor edits.
Changed python to python2.
Intro comment is now docstring.
Replaced print with logging.info.
Whitespace edits.