Make urlparse import py2/py3 friendly.
I noticed this when trying to run the greenwave functional tests
tonight. greenwave tries to import both waiverdb and resultsdb to
stand them up as text fixtures and it seems that (without this
change) waiverdb is py3 only, while resultsdb is py2 only.