adding file handler, cleaning up print handler swig a little