[python] start string substitution