def bin_list_to_int(bin_list):
 return (bin_list << range(len(bin_list))).sum(0)

def bin_list_to_int ( bin_list ) : return ( bin_list << range ( len ( bin_list ) ) ) . sum ( 0 )
create int from binary repr from URL .