I am trying to automate a app using python. I need help to send keyboard commands through python. I am using powerBook G4.
You could call AppleScript from your python script with osascript tool:
import os cmd = """ osascript -e 'tell application "System Events" to keystroke "m" using {command down}' """ # minimize active window os.system(cmd)