Interface barcode scanner with arduino yun

Dear Mr.Sonnyyu,

I ran the command, ./evdev.py '/dev/input/event1' and got the expected result.

Please clarify where I have to insert the below code. Should I insert it in evdev.py program or somewhere else?

#!/usr/bin/python
import sys
sys.path.insert(0, '/usr/lib/python2.7/bridge/')
from bridgeclient import BridgeClient as bridgeclient
bc = bridgeclient()
bc.put('to_arduino',keyboard_code)

And How can I interface this bridgeclient with arduino program. I wish to get the resulted keyboard_code in serial terminal of arduino software.

Kindly help.