Try returning the file object directly instead of wrapping in bottle.static_file