Paul LaFollette wrote: > since type(Node) responds with <class, 'NoneType'> but the assertion > above gives "name 'NoneType' is not defined" suggesting that NoneType > is some sort of quasi-class. add NoneType = type(None) before using Nonetype