parse_qs and parse_qsl in cgi is deprecated since python 2.6, import from urlparse instead.