I'll actually just make my recursive descent parser module a whole new project. I think it deserves that. Perhaps other people need to parse config files and want to use my kick-ass grammar for it. The code is found here:
https://github.com/akyuute/mybar/blob/dev/mybar/parse_conf.py