Remove a label from a doc. Takes care of updating the index

def remove_label(self, doc, label, update_index=True):
        """
        Remove a label from a doc. Takes care of updating the index
        """
        doc.remove_label(label)
        if update_index:
            self.upd_doc(doc)
            self.commit()