def METHOD_NAME(to_replace):
    if to_replace is None:
        return None
    if isinstance(to_replace, integral_types.MutableListString):
        return to_replace.cchar_p_p_p()
    else:
        raise NotImplemented