title: Simulating Key Press event using Python for Linux
body: <p>I am writing a script to automate running a particular model. When the model fails, it waits for a user input (Enter key). I can detect when the model has failed, but I am not able to use python (on linux) to simulate a key press event. Windows has the SendKeys library to do this but I was wondering if there is a similar library for python on linux.</p>
  
  <p>Thanks!</p>