Might be clearer to use the dict comprehension syntax: `{feature: str(getattr(task, feature)) for feature in features}`