def __new__(cls, buf, _cec_key=None):
    self = super(CPubKey, cls).__new__(cls, buf)
    if (_cec_key is None):
        _cec_key = CECKey()
    self._cec_key = _cec_key
    self.is_fullyvalid = (_cec_key.set_pubkey(self) != 0)
    return self
def __new__(cls, buf, _cec_key=None):
    self = super(CPubKey, cls).__new__(cls, buf)
    if (_cec_key is None):
        _cec_key = CECKey()
    self._cec_key = _cec_key
    self.is_fullyvalid = (_cec_key.set_pubkey(self) != 0)
    return self