Switch to using requests library to fix timeout problems.