I'm no Python person either (I deal in dodgily-written C and Vala) but there's no need to pass label to backspace_tap_and_hold Also, I'd remove the "for i in range..." statement - no need to have it running multiple times