remove unused import
fix foobared integer division, dumbass
fix comment about the zlib hashes
fix foobared integer division
fix whitespace
activate python3 tests via travis
fix all relative imports to be py3 compatible
fix StringIO import to be py3 compat
iteritems missing in py3
use seek(0) instead of reset()

The BytesIO class seems not to have a reset().
py3 string type
py3 int types
fix use of xrange, now using six
make the magic a byte immediately
make the empty string and empty byte
indexing into a byte in python3 does a struct unpack, wtf?
strip bytes, not strings
encode the magic format and user_codec
zlib compress and decompress accept only bytes, not strings
use wb for good measure, not sure if required