code: def get_extended_key(self):
          
          network_hex_chars = hexlify(
              chr_py2(self.network.SECRET_KEY))
          return ensure_bytes(network_hex_chars + self.get_key())
docs: Get the extended key.
  
          Extended keys contain the network bytes and the public or private
          key.