def begin_new_transaction(self):
        if self.level.name in self.no_selling:
            state = 'select'
        else:
            state = 'buysell'

        return state
Set or remove the startup_hook function.
dataset/ETHPy150Open justinmeister/The-Stolen-Crown-RPG/data/shopgui.py/Gui.begin_new_transaction--crossover with--dataset/ETHPy150Open deanhiller/databus/webapp/play1.3.x/python/Lib/site-packages/pyreadline/rlmain.py/Readline.set_startup_hook