Jquery Loop Over Array Python Question