HACK: cPickle complains about no __getstate__ method with a function using PyDicom