code: def _ser_script_to_sh_address(script_bytes, witness=False, cashaddr=True):
      '''
      makes an p2sh address from a serialized script
      '''
      if witness:
          script_hash = utils.sha256(script_bytes)
      else:
          script_hash = utils.hash160(script_bytes)
      return _hash_to_sh_address(
          script_hash=script_hash,
          witness=witness,
          cashaddr=cashaddrf _ser_script_to_sh_address(script_bytes, witness=False, cashaddr=True):
      '''
      makes an p2sh address from a serialized script
      '''
      if witness:
          script_hash = utils.sha256(script_bytes)
      else:
          script_hash = utils.hash160(script_bytes)
      return _hash_to_sh_address(
          script_hash=script_hash,
          witness=witness,
          cashaddr=cashaddr)
docs: makes an p2sh address from a serialized script