def make_property(attr):

    def set_attr():

        def inner(self, value):
            setattr(self, ('_' + attr), value)
        return inner

    def get_attr():

        def inner(self):
            try:
                return getattr(self, ('_' + attr))
            except:
                return None
        return inner
    return property(get_attr(), set_attr())
def make_property(attr):

    def set_attr():

        def inner(self, value):
            setattr(self, ('_' + attr), value)
        return inner

    def get_attr():

        def inner(self):
            try:
                return getattr(self, ('_' + attr))
            except:
                return None
        return inner
    return property(get_attr(), set_attr())