Modify XBlock.__delete__ method