twisted script