[python] check if a number already exist in a list in python