Javascript Push Object To Front Of Array In Python