Javascript Loop Over Json Array Parser Python 3 Math