create Node class for python test script