Fix bug with implicit MultiIndex in PythonParser.