Bit more cleanup and fixed setup.py to make the end result an executable script. Uploaded to PyPI.