# Python has no Term::Cap module.
# One could use the curses, but this was not ported to windows,
# use console.
# just run clear
import os
os.system("clear")
# cache output
clear = os.popen("clear").read()
print clear
# or to avoid print's newline
sys.stdout.write(clear)