list of non-zero elements in a list in python,b = [int(i != 0) for i in a]