A simple database in a flat-file with json (in Python)