def screenshot(self):
        """Take screenshot
        Return:
            PIL.Image
        """
        url = urljoin(self.__device_url, "screenshot")
        r = httpdo('GET', url)
        raw_image = base64.b64decode(r.value)
        return Image.open(StringIO(raw_image))
def screenshot ( self ) : url = urljoin ( self . __device_url , "screenshot" ) r = httpdo ( 'GET' , url ) raw_image = base64 . b64decode ( r . value ) return Image . open ( StringIO ( raw_image ) )
Take screenshot
        Return:
            PIL.Image