<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def debugDumpString(output, str):
 """Dumps informations about the string, shorten it if necessary """

    if output is not None: output.flush()
    libxml2mod.xmlDebugDumpString(output, str)