Python logComparator