Treat urlparse results like a tuple for all versions of python