get rid of python mode error messages