Thanks for the replies. basically what I was trying to accomplish was to be able to load a script text file with python syntax into a class and have it be able to cleanly reference the properties and methods. I have currently accomplished it with something like this code = compile(scriptText, '<string>','exec') exec code in self.__dict__