Only use assertIsInstance on Python 2.7 or higher