treat unicode correctly

- use codecs
- use configparser, ConfigParser has broken unicode support
- config file options are unicode case sensitive
- utf8 encoded config files are valid
some PEP8 improvements
ignore generated and IDE related stuff