Simple text/code output helper class for Python