thanks. I'll use the getattr function now, and I think I understand where I went wrong with eval. I was thinking in Lisp where the lexical scope would mean that obj is defined