threading optimizations and urllib3