def __getstate__(self):
        d=self.__dict__
        for key in self.keydata:
            if d.has_key(key): d[key]=long(d[key])
        return d
To keep key objects platform-independent, the key data is
dataset/ETHPy150Open CollabQ/CollabQ/vendor/gdata/Crypto/PublicKey/pubkey.py/pubkey.__getstate__