FIX PY3: list and tuples cannot be compared in Python 3