Python 3: view object are not indexable