[core] Fix typo in WillieWrapper that made dir() return an incomplete li...

...st

__class__ was lost when I reformatted this thing before committing.