title: TERM environemt varaible not set error Python
body: <p>Good day. I am using a repl server with Python 3.1.1. I am on Linux. I am aware of </p>
  
  <blockquote>
    <p><a href="https://stackoverflow.com/questions/16242025/term-environment-variable-not-set">TERM environment variable not set</a></p>
  </blockquote>
  
  <p>However, when I <em>do</em> put <code>set | grep TERM</code> or <code>export TERM=xterm</code>, it says </p>
  
  <pre><code>Traceback (most recent call last):
    File "python", line 75
      set | grep TERM
                    ^
  SyntaxError: invalid syntax
  </code></pre>
  
  <p>I also want to clear my shell window. </p>
  
  <p>UPDATE: 
  My screen clearing code is from: </p>
  
  <blockquote>
    <p><a href="https://stackoverflow.com/questions/4810537/how-to-clear-the-screen-in-python">how to clear the screen in python</a></p>
  </blockquote>
  
  <p>Any help is appreciated! Thanks. </p>