Gently kill a process created with Python's subprocess.Popen() in Windows

From the subprocess documentation:

CTRL_C_EVENT and CTRL_BREAK_EVENT can be sent to processes started with a creationflags parameter which includes CREATE_NEW_PROCESS_GROUP.