How To Map Data From Array Python Methods Vs Functions