Scale-free dynamical models for galaxies : flattened densities in spherical potentials