Fix code generate python binary string

the typemap from std::string to python string does not support binary, when we really use it to hold binary string, e.g. for return read() result, it broke the binary read(), here's the fix. need clean up generated xml and cpp files of the interface python's.