code: def hash160(msg_bytes):
      '''
      byte-like -> bytes
      '''
      h = hashlib.new('ripemd160')
      if 'decred' in riemann.get_current_network_name():
          h.update(blake256(msg_bytes))
          return h.digest()
      h.update(sha256(msg_bytes))
      return h.digest(f hash160(msg_bytes):
      '''
      byte-like -> bytes
      '''
      h = hashlib.new('ripemd160')
      if 'decred' in riemann.get_current_network_name():
          h.update(blake256(msg_bytes))
          return h.digest()
      h.update(sha256(msg_bytes))
      return h.digest()
docs: byte-like -> bytes