py3k compatibility

 - Bodies actually as bytes in test suite
 - use StringIO or BytesIO depending on python version :(
Merge pull request #4 from jboning/master

py3k compatibility