update mongoexp.py to more recent pymongo

Merge after #166

PyMongo has deprecated the "safe" kwarg to several calls, in favour of a new mechanism `write_concern`. This patch brings mongoexp into line with this new API.