def color_from_hls(hue, light, sat):
if light > <NUM_LIT>: <EOL><INDENT>return <NUM_LIT><EOL><DEDENT>elif light < <NUM_LIT>: <EOL><INDENT>return -<NUM_LIT:1><EOL><DEDENT>else:<EOL><INDENT>hue = (-hue + <NUM_LIT:1> + <NUM_LIT>/<NUM_LIT>) % <NUM_LIT:1> <EOL>return int(floor(hue * <NUM_LIT>))<EOL><DEDENT>
Takes a hls color and converts to proper hue 
        Bulbs use a BGR order instead of RGB