This allows qsymm to continue working with Python 3.5, and to be usable with older Kwant installations.