code: def modhex_decode(data):
      
      try:
          maketrans = string.maketrans
      except AttributeError:
          # Python 3
          maketrans = bytes.maketrans
      t_map = maketrans(b"cbdefghijklnrtuv", b"0123456789abcdef")
      return data.translate(t_map)
docs: Convert a modhex bytestring to ordinary hex.