Get Active Window Title Python

import win32gui
w=win32gui
w.GetWindowText (w.GetForegroundWindow())
Puzzled Plover