Google Script Stop Function In Python Programming