Error checking for called methods in names.py