Like most Python developers, I typically keep a console window open with the Python interpreter running to test commands, dir() stuff, help() stuff
dir()
help() stuff
The easiest way is to use os module
>>> import os >>> clear = lambda: os.system('clear') >>> clear()