def METHOD_NAME(request: dhl.ModifyPURequest) -> str:
    xml_str = (
        XP.export(
            request,
            name_="req:ModifyPURequest",
            namespacedef_='xmlns:req="http://www.dhl.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.dhl.com modify-pickup-Global-req.xsd"',
        )
        .replace("dhlPickup:", "")
        .replace('schemaVersion="3"', 'schemaVersion="3.0"')
    )
    xml_str = reformat_time("CloseTime", reformat_time("ReadyByTime", xml_str))
    return xml_str