Generates a configuration file using the ConfigParser library that
    can be saved to a file for subsequent reads

def generate_config(conf):
    """
    Generates a configuration file using the ConfigParser library that
    can be saved to a file for subsequent reads
    """

    c = {}
    def to_key(key, default):
        if conf.get(key):
            c[key] = '{} = {}'.format(key, conf.get(key))
        else:
            c[key] = default

    to_key('username', '# username = u1234...')
    to_key('password', '# password = secret...')
    to_key('from', '# from = elkme')
    to_key('to', '# to = +46700000000')
    return (True, c)