convert binary to list of digits python,[int(d) for d in str(bin(x))[2:]]