``perm.type >= 2`` is pretty opaque. Consider making a helper property on the ``perm`` instance with a descriptive name to make this condition check more self-documenting.