Switched to using requests for url handling