title: Python to simulate keyboard strokes
body: <p>Could i take a motion sensor that is attached to the raspberry pi (running Raspbian) that when the sensor is tripped that it would send a keyboard stoke. </p>
  
  <p>i am hoping that the keyboard stroke would control a application. </p>
  
  <p>looking for this to be done in python, but other suggestions would be greatly appreciated </p>