def METHOD_NAME(term):
    sys.stdout = term
    print("This print statement is redirected from stdout to the Panel Terminal")
    sys.stdout = sys.__stdout__
    print("This print statement is again redirected to the server console")