Added if __name__ for mod_wsgi compatibility