def export_as_troposphere(self):
    out = {}
    for name in 'gid':
        value = getattr(self, name, None)
        if (value != None):
            out[name] = value
    return out
def export_as_troposphere(self):
    out = {}
    for name in 'gid':
        value = getattr(self, name, None)
        if (value != None):
            out[name] = value
    return out