Make sure pickle dump of genx is compatible with python 2, even when
written with python 3