def getWindow(title, exact=False):
titles = getWindows()<EOL>hwnd = titles.get(title, None)<EOL>if not hwnd and not exact:<EOL><INDENT>for k, v in titles.items():<EOL><INDENT>if title in k:<EOL><INDENT>hwnd = v<EOL>break<EOL><DEDENT><DEDENT><DEDENT>if hwnd:<EOL><INDENT>return Window(hwnd)<EOL><DEDENT>else:<EOL><INDENT>return None<EOL><DEDENT>
Return Window object if 'title' or its part found in visible windows titles, else return None

    Return only 1 window found first
    Args:
        title: unicode string
        exact (bool): True if search only exact match