def loadConfig(filename, clear=False):
    """Load a configuration file. If clear is set to false the
        configuration will be merged into the current configuration. If clear
        is true the current configuration will be replaced."""
