better error messages for AttributeError, shows python source code and line number that caused the runtime error.