typemap to fix conversion from python strings to uint8_t*