made changes needed for snap.py on Windows