code: def script(self, s):
          
          try:
              script = self._network.script.compile(s)
              script_info = self._network.contract.info_for_script(script)
              return Contract(script_info, self._network)
          except Exception:
              return None
docs: Parse a script by compiling it.
          Return a :class:`Contract` or None.