register a property handler

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