Python List Typeerror Type Object Is Not Subscriptable