shelve is a dict. Forget that, newlines work fine