How To Do Script Mode In Python