Python Input Into Array Methods Javascript Pop