attributes is an OrderedDict that needs items()