Use .format(), with/as for file obj