Javascript Wrap In Array Python Question