Some tricks to be more compatibile with Python 2.x
Make sure to use Pickle protocol version 2.