Javascript Explode String Into Array In Python