I'd probably use `if six.PY2` here, so we remember to remove this branch when we drop Python 2 compatability