fix python 3 code error: map + list

In Python 3 map returns map object but in python 2
map returns list. casted "map" as "list" works both
in 2.x and 3.x

Signed-off-by: Aravinda VK <mail@aravindavk.in>