adding deck-creation code from omeka2anki