def raw_serialize(self):
    if (self._raw is None):
        if self.testnet:
            version = TESTNET_XPUB
        else:
            version = MAINNET_XPUB
        self._raw = self._serialize(version)
    return self._raw
def raw_serialize(self):
    if (self._raw is None):
        if self.testnet:
            version = TESTNET_XPUB
        else:
            version = MAINNET_XPUB
        self._raw = self._serialize(version)
    return self._raw