Get handlers from class object using getattr() for possible inheritance

Issue #6: __dict__ stores only class' local variables and therefore it
can't find the handlers defined in the inherited classes.