Don't check im_func attributes on classes