I have this legacy Jython  string which now I need to replace in the string
Server A and Server B with a dynamic value I do not what to repeated this ridiculous method
which values repeats themself...
how I add 2 new dynamic values: server_a_name and server_b_name that need to replace :
Server A and Server B
 params = '[ -JSPs ' \
                     '-MapRes [' \
                     '%s] ' \
                     '-Servers [' \
                     '[ "Server A" x=%s,y=%s,z=%s ]' \
                     '[ "Server B" x=%s,y=%s,z=%s ]] ' \
                     '-MapVH [' \
                     '[ "Server A" host ]' \
                     '[ "Server B"  host ]] ' \
                     '-ZZ [' \
                     '[ "Server A" true ]' \
                     '[ "Server B"  true ]] ' \
                     ']]'%(ref, Name_1, Name_2, Name_3, Name_1, Name_2, Name_3)
UPDATE
sorry its Jython, not python
which is like python 2.7
 
     
    