The code is this
```import ui
from objutil import * # is a custom objc module with more funtions
def bt1():
print 'HelloWorld'
bar=ObjCClass('UIKeyboardAssistantBar').alloc()
action = ObjCBlock(bt1,argtypes=[c_void_p])
txtv=ObjCInstance(ui.TextView(background_color=(.0, .85, .0)))
b1=ObjCClass('UIBarButtonItem').alloc().initWithTitle_style_target_action_('H',1,None,'action')
b2=ObjCClass('UIBarButtonItem').alloc().initWithTitle_style_target_action_('2',1,None,None)
items=[]
items.append(b1)
group=ObjCClass('UIBarButtonItemGroup').alloc().initWithBarButtonItems_representativeItem_(items,b2)
txtv.inputAssistantItem().trailingBarButtonGroups = [group]
presentUiElement(txtv) # this presents the textview in a panel ui
```
I dont know what to set as target. I saw some websites and all of them put self but it doesnt work with python. Is there a way to use self?