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

lxc module: type(X) is Y ==> isinstance(X, Y)