Update Setstate Idle Python Script Mode