Rather than `print`, you should use `evaluation.print_out(expr)`, which will ensure that the stdout messages are printed to the correct place.