def savedictionariestoConfigurationIniFile(simulationParamsDict,
    sceneParamsDict, timeControlParamsDict=None, moduleParamsDict=None,
    trackingParamsDict=None, torquetubeParamsDict=None, analysisParamsDict=
    None, cellLevelModuleParamsDict=None, inifilename=None):
    """
    Saves dictionaries from working memory into a Configuration File
    with extension format .ini.
    
    Parameters
    ----------
    simulationParamsDict
    sceneParamsDict
    timeControlParamsDict 
        Default None
    moduleParamsDict
        Default None
    trackingParamsDict
        Default None 
    torquetubeParamsDict
        Default None 
    analysisParamsDict
        Default None, 
    cellLevelModuleParamsDict
        Default None    
    
    Returns
    -------
    Writes output into inifilename passed (default if inifilename=None is 
    'example.ini')
    """
    import configparser
    config = configparser.ConfigParser(allow_no_value=True)
    config.optionxform = str
    config['simulationParamsDict'] = simulationParamsDict
    config['sceneParamsDict'] = sceneParamsDict
    try:
        config['timeControlParamsDict'] = timeControlParamsDict
    except:
        pass
    try:
        config['timeControlParamsDict'] = timeControlParamsDict
    except:
        pass
    try:
        config['timeControlParamsDict'] = timeControlParamsDict
    except:
        pass
    try:
        config['moduleParamsDict'] = moduleParamsDict
    except:
        pass
    try:
        config['trackingParamsDict'] = trackingParamsDict
    except:
        pass
    try:
        config['torquetubeParamsDict'] = torquetubeParamsDict
    except:
        pass
    try:
        config['analysisParamsDict'] = analysisParamsDict
    except:
        pass
    try:
        config['cellLevelModuleParamsDict'] = cellLevelModuleParamsDict
    except:
        pass
    if inifilename is None:
        inifilename = 'example.ini'
    with open(inifilename, 'w') as configfile:
        config.write(configfile)
