'Iterate over valid top-level attribute names.'

def attribute_names(self):

    for key in self._attributes:
        if isinstance(key, six.string_types):
            (yield key)
        else:
            (yield key[0])
