Python List Str Typeerror Type Object Is Not Subscriptable