Python Save Console State
import readline
readline.write_history_file('/home/ahj/history')
Colorful Copperhead
import readline
readline.write_history_file('/home/ahj/history')