Good day. I am using a repl server with Python 3.1.1. I am on Linux. I am aware of
However, when I do put set | grep TERM or export TERM=xterm, it says 
Traceback (most recent call last):
  File "python", line 75
    set | grep TERM
                  ^
SyntaxError: invalid syntax
I also want to clear my shell window.
UPDATE: My screen clearing code is from:
Any help is appreciated! Thanks.
 
    