def get_py_tree_path(behaviour):
    """
    Accept a behaviour/composite and return a string representation of its full path
    """
    path = ""
    target = behaviour
    while True:
        path = "{}>{}".format(target.name, path)
        target = target.parent
        if not target:
            break

    path = path[:-1]

    return path