More work on settings class

Also started to follow classic Python coding style