changes button method to use pyparser