Better names for the insertion methods.
s/insert/write
Use a proper class instead of a dictionary.