Fix GH278
fix failing to_dataframe() test on python 3
add core.utils.as_shape
Add Variable.set_dims
Fix to_dataframe with no data variables