Detects touch movement from Python program