Fredrik and Steve, Thank you so much for the help. Now I know more about Python. :-) Steve's test does explain why 'peter1' is OK while 'peter' is not: 'peter1' appears before 'Person' in the globals while 'peter' is after. The error message is just a little confusing to a Python newbie, I think. Thanks again! - Baoqiu