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

type(X) is Y  ->  isinstance(X, Y)