Thanks, but you missed the part of my OP where I say that I also need that solution in Python. I tried to work with CSV modules, but there only support full quoted values, not partially quoted ones, e.g. only "key=value","key=value" not key="value",key=value1:"value2":value3.