wrap find_nodes with python