made the button handler stand functional, fix the synthax on the command print to be python compatible