pep8 fix
Changed index page to class based generic view