This only works in Python 3.6 and later.
From https://www.peterbe.com/plog/fastest-way-to-uniquify-a-list-in-python-3.6
list(dict.fromkeys(seq))