why not urlparse for this?

```
from urlparse import urlparse, parse_qs
parse_qs(urlparse(url).query)
```