Replace String In Array Javascript Push Function In Python