using python not python3 to populate csv