Javascript Object Values To Array Python Question