removing urllib3 and using parse instead