Jquery Each Loop On Array In Python Problem Solving