Improve Python compatibility of build file.
Merge branch 'master' of https://github.com/google/blockly into blockly-original