Python Ctypes obtiene la ventana actual

import ctypes
window = ctypes.windll.user32.GetForegroundWindow()
Strange Salmon