fix mapping from Python block name to JS block name