def option_name(name):
    """Checks if option name is valid 
    
        Returns:
            200 if ok,
            700 if name == '',
            701 if ':' in name,
            702 if ',' in name,
            703 if name[0] == '#',
            704 if '\n' in name"""

    if name == '':
        return 700
    elif ':' in name:
        return 701
    elif ',' in name:
        return 702
    elif name[0] == '#':
        return 703
    elif '\n' in name:
        return 704
    else:
        return 200