Made writer handle Python lists rather than ndarrays to avoid repeated array_str() calls