'Make an identical copy of the original_script.
Args:
original_script (Script): The Script to copy.
new_key (str, optional): Rename the copy.
new_obj (Object, optional): Place copy on different Object.
new_locks (str, optional): Give copy different locks from
the original.
Returns:
script_copy (Script): A new Script instance, copied from
the original.'

def copy_script(self, original_script, new_key=None, new_obj=None, new_locks=None):

    typeclass = original_script.typeclass_path
    new_key = (new_key if (new_key is not None) else original_script.key)
    new_obj = (new_obj if (new_obj is not None) else original_script.obj)
    new_locks = (new_locks if (new_locks is not None) else original_script.db_lock_storage)
    from evennia.utils import create
    new_script = create.create_script(typeclass, key=new_key, obj=new_obj, locks=new_locks, autostart=True)
    return new_script
