Expose addNode to Python