Problem in keyboard input using python pyUserInput module

i am working on a project which aim to generate keyboard input in python .I am working on beaglebone black(angstrom) plugged to my laptop using usb.I installed python 2.7 & xlib for it & pUserInput python module but on compilation i am getting error

File “”, line 2, in
File “/usr/lib/python2.7/site-packages/pykeyboard/”, line 75, in init
self.display = Display(display)
File “/usr/lib/python2.7/site-packages/Xlib/”, line 83, in init
self.display = _BaseDisplay(display)
File “/usr/lib/python2.7/site-packages/Xlib/”, line 65, in init
apply(protocol.display.Display.init, (self, ) + args, keys)
File “/usr/lib/python2.7/site-packages/Xlib/protocol/”, line 44, in init
name, host, displayno, screenno = connect.get_display(display)
File “/usr/lib/python2.7/site-packages/Xlib/support/”, line 65, in get_display
return mod.get_display(display)
File “/usr/lib/python2.7/site-packages/Xlib/support/”, line 59, in get_display
raise error.DisplayNameError(display)
Xlib.error.DisplayNameError: Bad display name “”

I am attaching the screenshot of error
Help sir … i think problem is in display detection … or is it that i need to use different display & keyboard for my beaglebone and not my laptop ?