fix to the cPickle vs. legacy pickle dump problem (i.e. no self argument)