web_config: further python2/3 unification