History.py

Save Python history to file
import readline readline.write_history_file('pyhistory.py')