結果 : how to create a node class in python