Jquery Loop Over Array Python Example Code