Simple Key Event Sending to an Application Wrapper I made
I made  a Python library to send inputs to an executable, useful for scenarios such as having a neural network send decisions to a game. Essentially a wrapper around the win32api.   
You can send events to a window in just 2 lines:  


    hwnd  =  pyinput.get_handle(window_name) # Gets the handle
    pyinput.press_key(hwnd, pyinputkeycodes.VK_RETURN) # Sends Return key

I got annoyed at doing boilerplate over and over for this so I made a quick library!  
[https://github.com/GaryFrazier/PyInput](https://github.com/GaryFrazier/PyInput)