csv logging working in python3.