factorize python config for confDB