Code
im = PIL.ImageGrab.grab()
im.save('2.png')
Here is what actually displayed:

Here is the screenshot of PIL:

Pillow version==4.1.0
This is relevant for different pop ups and menus.
According to @glitchassassin (from pyautogui):
Looks like this is a limitation of Pillow, using SRCCOPY instead of SRCCOPY | CAPTUREBLT in the call to BitBlt.
Code
Here is what actually displayed:

Here is the screenshot of PIL:

Pillow version==4.1.0
This is relevant for different pop ups and menus.
According to @glitchassassin (from pyautogui):