[python] 'str' object does not support item assignment in Python