button function in python