Flake8 clena up on views & fixed error of user def on 'create' view.