build a Xhybrid config with python