Effect of gravitational stratification on the propagation of a CME