Avoid using sets by mistake. Make this work on all python versions.