Fix sgen.py cube copy back for compatibility with dplot.py