updated deprecated cgi.parse_qsl to use six's parse_qsl