You should take a look to the format method of python. You could then define your formatting string like this :
>>> s="{0} BLAH BLAH {1} BLAH {2} BLAH BLIH BLEH"
>>> x = ['1', '2', '3']
>>> print s.format(*x)
'1 BLAH BLAH 2 BLAH 3 BLAH BLIH BLEH'
You should take a look to the format method of python. You could then define your formatting string like this :
>>> s="{0} BLAH BLAH {1} BLAH {2} BLAH BLIH BLEH"
>>> x = ['1', '2', '3']
>>> print s.format(*x)
'1 BLAH BLAH 2 BLAH 3 BLAH BLIH BLEH'