with statement for StringIO;merge static files