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