Started to work on new config using Python syntax. Inspired by @2Cubed but adding more useful comments and adding genning of config file.