Arbitrary key binding to python