old_contents: from electrum.wallet import BIP32_Hardware_Wallet
  
  from plugins.trezor.client import trezor_client_class
  from plugins.trezor.plugin import TrezorCompatiblePlugin
  
  try:
      from keepkeylib.client import proto, BaseClient, ProtocolMixin
      KEEPKEY = True
  except ImportError:
      KEEPKEY = False
  
  
  class KeepKeyWallet(BIP32_Hardware_Wallet):
      wallet_type = 'keepkey'
      root_derivation = "m/44'/0'"
      device = 'KeepKey'
  
  
  class KeepKeyPlugin(TrezorCompatiblePlugin):
      client_class = trezor_client_class(ProtocolMixin, BaseClient, proto)
      firmware_URL = 'https://www.keepkey.com'
      libraries_URL = 'https://github.com/keepkey/python-keepkey'
      libraries_available = KEEPKEY
      minimum_firmware = (1, 0, 0)
      wallet_class = KeepKeyWallet
      import keepkeylib.ckd_public as ckd_public
      from keepkeylib.client import types
      from keepkeylib.transport_hid import HidTransport
  
new_contents: from plugins.trezor.client import trezor_client_class
  from plugins.trezor.plugin import TrezorCompatiblePlugin, TrezorCompatibleWallet
  
  try:
      from keepkeylib.client import proto, BaseClient, ProtocolMixin
      KEEPKEY = True
  except ImportError:
      KEEPKEY = False
  
  
  class KeepKeyWallet(TrezorCompatibleWallet):
      wallet_type = 'keepkey'
      device = 'KeepKey'
  
  
  class KeepKeyPlugin(TrezorCompatiblePlugin):
      client_class = trezor_client_class(ProtocolMixin, BaseClient, proto)
      firmware_URL = 'https://www.keepkey.com'
      libraries_URL = 'https://github.com/keepkey/python-keepkey'
      libraries_available = KEEPKEY
      minimum_firmware = (1, 0, 0)
      wallet_class = KeepKeyWallet
      import keepkeylib.ckd_public as ckd_public
      from keepkeylib.client import types
      from keepkeylib.transport_hid import HidTransport
  
subject: Update keepkey too