Use pycurl instead of requests

It is more lightweight and requests caused some strange recursion problem.