Int Object Is Not Subscriptable Error