If you are going to upgrade pymongo, you should probably convert all safe=true --> w=1

scalymongo/document.py
tests/unit/test_document.py