adding proper logging to node.py