def DbgWrite(ea, data):
    if not idaapi.dbg_can_query():
        return -1
    elif len(data) > 0:
        return idaapi.dbg_write_memory(ea, data)
Write to debugger memory.
dataset/ETHPy150Open EiNSTeiN-/idapython/python/idc.py/DbgWrite