I have an integer which I want to convert to binary and store the string of bits in an one-dimensional array starting from the right. For example, if the input is `6` then it should return an array like `[1,1,0]`. How to do it in python?