Javascript Array Map Return New Object In Python