removed deprecated scrapy.conf import

and disable middleware on missing pymongo module