Pyflakes fix: Changed WindowsError to OSError

Pyflakes fix: undefined name 'WindowsError'

On linux systems, WindowsError it is not necessarily defined.
Replaced with the parent class, as it is not used in sections
of code specific for Windows systems.

Change-Id: Ice9234fde21ff666e438cfc6047b0a8d1f2d23f8
Merge "Pyflakes fix: Changed WindowsError to OSError"