improved error message in case of bootstrap failures
made AST optional (support older Python versions on agent side)