I would use a dictionary to call your functions. Do what @ccc said and under
def execute_command(command, state):
d = {'someCommand':someCommand,
'command2':command2}
for key in d.keys():
if command in key:
func = d[key]
tokens = key.split()
tokens.remove(tokens[0]) #get rid of function name
func(state, *tokens)