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

All of this is flake8 clean up related, except for line 24, which is to fix -- user not found -- error.