Switched to using urlparse and Requests