Python Method Object Is Not Subscriptable Meaning