assert len(demangled) == len(names) + 1
return demangled[:-1]
print(demangle([
    '_ZNSt15basic_stringbufIcSt11char_traitsIcESaIcEE17_M_stringbuf_initESt13_Ios_Openmode'
    , '_ZNSt15basic_stringbufIcSt11char_traitsIcESaIcEE6setbufEPci']))
C++ Name Mangling Library for Python