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

__class__ was lost when I reformatted this thing before committing.