Python 3 and index view