add pythonize: convert ds to attr for python