def python_mode_allowed(self):
        return self.state not in (State.COMMENT,)
Returns true if we're in a state where a { starts python mode.
dataset/ETHPy150Open dropbox/pyxl/pyxl/codec/parser.py/PyxlParser.python_mode_allowed