fixing "global name DuplicateKeyError is not defined" error
Merge pull request #70 from toddtomkinson/fix_DuplicateKeyError_import

fixing "global name DuplicateKeyError is not defined" error