python 3x changes broke csv serialization in 4ed6eae5e695845e336632239b6c915ffe9ae1ac