def helpcmds(cmds):
    print('commands (prefix abbreviation accepted):')
    for cmd in cmds:
        if cmd.__doc__:
            print(('    ' + str(cmd.__doc__.strip())))
        else:
            print(('    ' + cmd.__name__))
def helpcmds(cmds):
    print('commands (prefix abbreviation accepted):')
    for cmd in cmds:
        if cmd.__doc__:
            print(('    ' + str(cmd.__doc__.strip())))
        else:
            print(('    ' + cmd.__name__))