Python script enabling basic gestures