Run tests with Python 3.4 using tox
Fix #502

The code so far made far too many assumptions about the format used by
pickle, the changes introduced by PEP 3154 finally caused this to become
a real issue. This changes the code to make no assumptions about the
representation whatsoever, making it work with protocol 4, all future
protocols.