type(X) is Y  ==>  isinstance(X, Y)
Merge pull request #14516 from hulu/use-isinstance-utils

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