Fixed the windows.py implementation.

Added a return statement to the handler, so a TypeError on time.sleep(0.01) doesn't happen.
Added minor fixes for capitalization.