Fix contact/ endpoint, pep8 fixes