work around requests library non-thread-safeness