pep8
errmsg added