converting a couple of mongoengine's first() calls to objects.get() calls