made __getattr__ work with parent and grandparent classes,
fixed class attribute lookup on grandparents,
made closure compatible again.