Make use of imrpy SettingsHandler
@betker and I decided to move the settingsHandler code to a separate class from which we can then inherit. This was done in imr/imrpy!7 and can now be used here. This removes code duplication but should not change any functionality.