Unordered DIFF program written in Python 3