ported freezing as csv to python 3.4