Python persistent dictionary using multiple shelves as backend