code: def register_prop(name, handler_get, handler_set):
      
      global props_get, props_set
      if handler_get:
          props_get[name] = handler_get
      if handler_set:
          props_set[name] = handler_set
docs: register a property handler