Fixed fetch_data nowdatatime default value.
Rewrite out_putfile with `with` syntax.