Cses Problem Set Counting Bits Python