Raise exception when writing table with multi-dim column
Update doc example for python 3 compatibility [skip ci]