Clean up cruft and reformat microcosm/views.py