use WRITEFUNCTION to be compatible to pycurl 7.19.0
Fix response_code usage
Merge pull request #5 from jplitza/master

use WRITEFUNCTION to be compatible to pycurl 7.19.0