Adds magic headers
Adds a script to run the main loop
A bit of pythonification, proper code ordering, etc.
Was this committed? It shouldn't have been.
Ignoring compiled .pyc files, natch