import pymemoryapi process = pymemoryapi.Process(pid=0x5434) print(process.handle)