BUG: handle overwriting existing keys.
Merge pull request #5 from cournape/handle_overwrite

BUG: handle overwriting existing keys.