merged 'set_params' and 'get_params' into 'settings' + pep8 cleanup