Update the config parser using code from python2.7

Notably this adds support for valueless options
( e.x. the option "required" which can be added to filters
which must succeed.)
Merge pull request #183 from kmosher/master

Update the config parser using code from python2.7