def save(self, filename):
import json<EOL>f = open(filename, '<STR_LIT:w>')<EOL>json.dump(self.settings, f, indent = <NUM_LIT:4>)<EOL>f.close()<EOL>
Saves the current configuration to file 'filename' (JSON).