Parse String Into Array Javascript Push Method In Python