def get_similar_commands(name):
from difflib import get_close_matches<EOL>name = name.lower()<EOL>close_commands = get_close_matches(name, commands_dict.keys())<EOL>if close_commands:<EOL><INDENT>return close_commands[<NUM_LIT:0>]<EOL><DEDENT>else:<EOL><INDENT>return False<EOL><DEDENT>
Command name auto-correct.