Capture screenshots with python