add missing import pymongo.errors