As the error message suggests, you cannot subscript (square bracket) a map
object. Maps are a type of iterable in python, meaning the only way to get data out of them is to iterate through them one element at a time. If you want to subscript it, you need to store it as a list.
config.input = list(map(int, pLst))
As this simple example shows, you cannot subscript a map object.
>>> x = [0, 1, 23, 4, 5, 6, 6]
>>> y = map(str, x)
>>> y
<map object at 0x02A69DB0>
>>> y[1]
Traceback (most recent call last):
File "<pyshell#4>", line 1, in <module>
y[1]
TypeError: 'map' object is not subscriptable
And to get data out of the map object:
>>> for i in y:
print(i)
0
1
23
4
5
6
6