Make run.py work from commandline or gunicorn

With a small tweak, you can use `run.py` by itself from the commandline
or via gunicorn.

I could write a bunch about why this is the case, but the basics are
[explained well on StackOverflow](http://stackoverflow.com/questions/419163/what-does-if-name-main-do).