Use built-in FileWrapper explicitly

Fixes bug with gunicorn