Python Add First Element In Array Javascript Push To Beginning