Add pycurl to dev requirements, apparently pycurl is unmaintained and does not work on python 3
Handle stringio fallback correctly
Unbreak tests on python 3