Added session check

* node/node.py
  -- Fixed Nullmode's path issue
  -- Added a check for sessions