1st version of input/output to python

- needs to be debugged still