python check if integer exists in list