Made output of Jython selective based on the operation