convert string to binary in python,print(' '.join(['{0:b}'.format(x) for x in a_bytes]))