Split off Python node types into pynode.py.

node.py now just has essential language-agnostic features. Also updated dump() and its unit test.