Fix globalhotkeys example.py

See issue #401 for what this is fixing. Thanks.