Python HTTP library with thread-safe connection pooling and file post