Replace `is instance or` with a tuple of types.
instance checks must be done one at a time for Python2.
Merge pull request #2968 from grandquista/grandquista/isinstance_w_tuple_v2

Replace `is instance or` with a tuple of types.