Add method for getting the node id's

Damn damn damn ad-hoc Python/C++ bridging :(