from collections import Counter from log_list import log_list print [k for k, v in dict(Counter(log_list)).items() if v != 1]