format code of top.py and ArgParser.py.
mv terminal operation function to terminal class.