def brightness(level=<NUM_LIT:100>, group=<NUM_LIT:0>):
if level not in range(<NUM_LIT:0>,<NUM_LIT>):<EOL><INDENT>raise Exception("<STR_LIT>")<EOL><DEDENT>b = int(floor(level / <NUM_LIT>) + <NUM_LIT:2>) <EOL>return (COMMANDS['<STR_LIT>'][group], Command(<NUM_LIT>, b))<EOL>
Assumes level is out of 100