Uggh, use urlparse for python 2.X