I had to do something like this for a project I was working on a while ago, it was a program based on alota plugins that would use a config file that looked sorta like an Xorg configuration, it seemed kinda hard at the time but it's acctually pretty fun and easy, the hard part is functionality you wanna make sure that you have everything planed out before tackling this, as for bindings and whatnot all I did was type the method I want to call in the config, and then I would use eval() to call it up, kinda sloppy but it worked fine.
-- http://mail.python.org/mailman/listinfo/python-list