Add compatibility unpickler for python 3, use it in test
Merge pull request #1593 from lamblin/fix_py3_unpickle

Add compatibility unpickler for python 3, use it in test