IDL compiler: sync Python to r165635

Python side to:
Remove world type from hasInstance()
https://codereview.chromium.org/125043004

BUG=239771
TBR=haraken
NOTRY=true

Review URL: https://codereview.chromium.org/135273006

git-svn-id: svn://svn.chromium.org/blink/trunk@165686 bbb929c8-8fbe-4397-9dbb-9b2b20218538