Python Map Object Is Not Subscriptable