Implements the scattering transform in python