updating views.py email functions - indentation error