# import win32com.client as comclt
 
# class Keypresser:
 
#     wsh = None;
 
#     def __init__(self):
#         self.wsh = comclt.Dispatch("WScript.Shell");
#     def key_press(self, key):
#         self.wsh.SendKeys(key)


import os
# minimize active window

def key_press(key):
	os.system("osascript -e 'tell application \"Chrome\" to activate'")
	os.system("osascript -e 'tell application \"System Events\" to keystroke \""+ key +"\"'")
@@ -1,240 +1,32 @@
-# 
 import 
-win32com.client as comclt%0A %0A# class Keypresser:%0A %0A#     wsh = None;%0A %0A#     def __init__(self):%0A#         self.wsh = comclt.Dispatch(%22WScript.Shell%22);%0A#     def key_press(self, key):%0A#         self.wsh.SendKeys(key)%0A%0A%0Aimport os
+os %0Aclass Keypresser:
 %0A# m
@@ -48,16 +48,17 @@
 window%0A%0A
+%09
 def key_
@@ -69,16 +69,17 @@
 s(key):%0A
+%09
 %09os.syst
@@ -139,16 +139,17 @@
 vate'%22)%0A
+%09
 %09os.syst

change keystroke bindings to 'l' and 'r'