fixed flake8
fixed comment
updated MIME type to reflect JSON submission