def find_by_b64id(self, _id, **kwargs):
        """
        Pass me a base64-encoded ObjectId
        """

        return self.find_one({"_id": ObjectId(base64.b64decode(_id))}, **kwargs)
def find_by_b64id ( self , _id , ** kwargs ) : return self . find_one ( { "_id" : ObjectId ( base64 . b64decode ( _id ) ) } , ** kwargs )
Pass me a base64-encoded ObjectId