[python] 'tuple' object does not support item assignment