cgi.parse_qs deprecated -> urlparse.parse_qs

Ref: https://docs.python.org/2/library/cgi.html#cgi.parse_qs