how can i convert a url query string into a list of tuples using python?,"[('foo', 'bar'), ('key', 'val')]"