The below one is working properly,

```
>>> a = 1,2
>>> a = u'[1,2]'
>>> print a
[1,2]
>>> type(a)
<type 'unicode'>
>>> n = [e.encode('utf-8') for e in a.strip('[]').split(',')]
>>> n
['1', '2']
>>> type(n)
<type 'list'>

```

#

But when include it in the program. Instead of changing the value from unicode to list, its just changing the variable name.

```
>>> a = 1,2
>>> a = u'[a]'
>>> print a
[a]  # Instead of 1,2.

```

Please help me on this.,