Changed library from httplib to urllib3 for thread safety and connection pooling