win32process.GetCurrentProcessId

int = GetCurrentProcessId()

Retrieves the process identifier of the calling process.