CME dynamics in a structured solar wind