Jquery Loop Over Array Python Memory