'Search for a particular script.
Args:
ostring (str): Search criterion - a script dbef or key.
obj (Object, optional): Limit search to scripts defined on
this object
only_timed (bool): Limit search only to scripts that run
on a timer.'

@returns_typeclass_list
def search_script(self, ostring, obj=None, only_timed=False):

    ostring = ostring.strip()
    dbref = self.dbref(ostring)
    if (dbref or (dbref == 0)):
        dbref_match = self.dbref_search(dbref)
        if (dbref_match and (not ((obj and (obj != dbref_match.obj)) or (only_timed and dbref_match.interval)))):
            return [dbref_match]
    obj_restriction = ((obj and Q(db_obj=obj)) or Q())
    timed_restriction = ((only_timed and Q(interval__gt=0)) or Q())
    scripts = self.filter(((timed_restriction & obj_restriction) & Q(db_key__iexact=ostring)))
    return scripts
