screenshot of a window using python,app.exec_()