Javascript Array Push To Front Of Array In Python