Put windows imports in scheduler.py in a try