Close csv file before passing it to freeze.python
Typo.

#andy-25 Fixed