Update util.py for pwd/windows

prevent loading of pwd module on Windows systems