def clean_command(command):
    # type: (str) -> str
    '''Cleans a command.'''
    command = command.lower()
    # Force to str
    command = command.encode('utf-8')
    # Remove punctuation people are likely to use and won't interfere with command names
    command = command.translate(string.maketrans('', ''), PUNCTUATION)
    return command
Cleans a command.
securitybot/bot.py