comparisons to ``None`` should either use ``is`` / ``is not`` instead of ``==`` / ``!=`` or just be ``if classType:``