Typescript Push To Front Of Array In Python