def enum_parent(e):
    """Return the name of the parent type of the enumeration.

    If the enum doesn't have a parent, this will be the module, 
    otherwise it will be the exported name of the Python class
    the values need to be added to
    """
    if e['parent'] is not None:
        return 'm.attr("%s")' % e['parent'].split('::')[-1] 
    else:
        return 'm'