Little cleanup in node.py