def set_prop(section, prop, value):

    config = ConfigParser.ConfigParser()
    config.read(CONFIG_FILE_NAME)

    # Add section if it doesnt exist
    if not config.has_section(section):
        config.add_section(section)

    # Set the new parameter
    config.set(section, prop, value)

    prop_f = open(CONFIG_FILE_NAME, 'w')
    config.write(prop_f)
    prop_f.close()

    return 0
Update state of the lights in this room.
dataset/ETHPy150Open jakev/dtf/src/dtf/properties.py/set_prop--crossover with--dataset/ETHPy150Open tomwilkie/awesomation/src/appengine/room.py/Room.update_lights