Window.screenshot python 3 fix

Fixes https://github.com/kivy/kivy/issues/2660.