Javascript Push Value To Front Of Array In Python