utils modules: type(X) is Y  ==>  isinstance(X, Y)