Parse the text file from standard input and serialize the element tree into standard output.
The format of the output is designated using the first argument: print, json.
sys
importlib
process
txt
formats
formats = {
'json': ('json', (lambda m,f,a: m.dump(a, f))),
'print': ('pprint', (lambda m,f,a: f.write(m.pformat(a)))),
}
mainprocess.Exit
main(inv)