In Python2, `map` returns list whereas Python3, `map` function returns iterator. This fix typecast map function for Python3. Fixes: #37114 Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>