def serializeSdr(sdr):
 return ''.join((str(bit) for bit in sdr))

def serializeSdr ( sdr ) : return '' . join ( ( str ( bit ) for bit in sdr ) )
serialize python list object containing only 0s and 1s to string .