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.)