Just use a File instead of StringIO

Signed-off-by: David Celis <me@davidcel.is>