Fix imports and test
Attempt to be more py3-smart
Merge pull request #15 from kennknowles/urlparse-import

Fix imports and test