Create a Tempfile object.

Hotfix for issue https://github.com/ddeboer/data-import/pull/17#issuecomment-16036413