created a python text process with overloaded print function