Do not use send_file because it doesn't seem to play nice with StringIO
in py3k.