add node_writer.py, add node invert

new script: node_writer.py, add new node: invert