An Integer Type Object Is Not Subscriptable Python