Jquery Loop Over Array Python Example