Swap backend to a history CSV
No longer using json.
Fix Python 3.x compatibility
Add gitignore for csv files.