Why not use ``ConfigParser`` then? It's in stdlib and does an awful lot of checking and parsing for you, plus it supports arbitrary delimiters passed to its instance.