def parse(self):
        super(MuxPlayerCommand, self).parse()

        if utils.inherits_from(self.caller, "evennia.objects.objects.DefaultObject"):
            # caller is an Object/Character
            self.character = self.caller
            self.caller = self.caller.player
        elif utils.inherits_from(self.caller, "evennia.players.players.DefaultPlayer"):
            # caller was already a Player
            self.character = self.caller.get_puppet(self.session)
        else:
            self.character = None
Return result and next state, given action and args. 
dataset/ETHPy150Open evennia/evennia/evennia/commands/default/muxcommand.py/MuxPlayerCommand.parse--crossover with--dataset/ETHPy150Open jon-jacky/PyModel/pymodel/ModelProgram.py/ModelProgram.GetNext