remove non-exception response prinouts, some cleanup and pep8 fixes