remowing err_py (it was exactly the same as err) and small cleaning