Made views import Python 3 compatible.