fixed the inheritance in node.py