nonetype and dunderclass