Typeerror Int Object Is Not Subscriptable