Python Push Pop Array Javascript Length Of List