converting a couple of read-update sequences to mongoengine atomic updates