import gobject

class Foo(gobject.GObject):
    
    def set_foo(self, foo):
        self._foo = foo
    def get_foo(self, foo):
        self._foo = foo
    
    fooprop = property(get_foo, set_foo)

if __name__ == "__main__":
    foo = Foo()
    foo.fooprop = 123

