[python] Python 'list indices must be integers, not tuple"