Changed type(None) to NoneType and added some comments on method binding