rewritten with requests

use Requests instead of PyCurl for a better compatibility