Good to know: file() objects are not pickleable but NamedStringIO is.