I am trying the get a usb barcode reader input in python so I used this code
#thanks to https://stackoverflow.com/questions/19732978/how-can-i-get-a-string-fr