moved button signals outside of if statement
added _is_grippable function
fixed pep8 issue