changing from requests to urlparse, so it can be used on google app engine