Added some assertions that we are making the correct pycurl calls.