Python Check If Button Is Pressed