added clear input command in ctl.py.