def dumps(self, obj): return pickle.dumps(convert(obj))
def dumps(self, obj): return self.to_str(convert(obj))
def dump(self, obj, fp): return pickle.dump(convert(obj), open(fp, 'wb'))
def dumps(self, obj): r = convert(obj) return self.to_str(r)