PermissionError: also handle an iterable for `attribute_name`