Minor style thing - list comprehension would look better - `node = [n for n in driver.list_nodes() if n.state == NodeState.RUNNING]`.