[mod] update error message on parsing error since we don't use ast.py anymore