Python Ctypes obtiene la ventana actual
import ctypes
window = ctypes.windll.user32.GetForegroundWindow()
Strange Salmon
import ctypes
window = ctypes.windll.user32.GetForegroundWindow()
import win32gui, win32con
hwnd = win32gui.GetForegroundWindow()
win32gui.ShowWindow(hwnd, win32con.SW_MAXIMIZE)