How to control the mouse and keyboard with python for automation