Joint yaml and command-line option handling for python