Python get the expect value from a variable

the value of the variable is 

yes
 group=bsp_16
 keyword="82599"
 test_var="-a xxx -b yyy"

I want to get output with

-a xxx -b yyy