'Fill missing properties if they are missing'

def fill_default(self):

    cls = self.__class__
    for (prop, entry) in cls.properties.items():
        if ((not hasattr(self, prop)) and entry.has_default):
            setattr(self, prop, entry.default)
