Python implementation of the spectral data cube modeling code DDT