'Save settings to file.'

def save(self):

    common.log('Settings', 'save')
    try:
        os.makedirs(os.path.dirname(self.filename))
    except:
        pass
    open(self.filename, 'w').write(json.dumps(self._settings))
    print strings._('settings_saved').format(self.filename)
