Removed assertIsInstance for Python 2