def binlist(n, width=0):
    """
    Return list of bits that represent a non-negative integer.
    n      -- non-negative integer
    width  -- number of bits in returned zero-filled list (default 0)
    """
    return list(map(int, list(bin(n)[2:].zfill(width))))