improved _build, update_node_pool to be more pythonic