Python Create Json Array Javascript Push Function