BF(PY26): define assert_is_instance for python < 2.7