Update Setstate Idle Python Script