Merge pull request #67 from p-push/python-3-compat

Python 3 compatibility changes
Decorator to only run tests on python 3
Updating tests to handle responses being of bytes type under python 3
Update high level interface for pycurl returning body and headers as bytes now
Update remaining tests for pycurl returning body as bytes
Test for read callback returning bytes
Check that read callback returning bytes with embedded nulls works correctly
Dry
Add corresponding tests for strings
Check multibyte string encoded to bytes
Encoding multibyte data is not going to work well, only allow ascii
Update newly added tests for pycurl returning body as bytes
Add a test for writing to StringIO which is now different and does not work
Test trying to obtain missing attributes
Check that trying to delete nonexistent attributes raises AttributeError
A tempfile is not a python 2 file; arrange for separate tests to exist for files and tempfiles
Files must be opened in binary mode, otherwise python expects f.write to take strings
This will only work on python 3
Not sure why it worked on my machine but contents should probably be decoded
Rewrite bytes/unicode read function test cases to work correctly