instance checks must be done one at a time for Python2.