Js Array Map Return Object In Python