Clear screen in shell
For macOS/OS X, you can use the subprocess module and call 'cls' from the shell:
import subprocess as spsp.call('cls', shell=True)
To prevent '0' from showing on top of the window, replace the 2nd line with:
tmp = sp.call('cls', shell=True)
For Linux, you must replace cls
command with clear
tmp = sp.call('clear', shell=True)