[python] string substitution done