Javascript Extract Value From Array Python Vs List