[python-meh] Allow a change of the I/O functions