Python port of perl CGI::Application