Python 3: view objects are not indexable