For some reason the global keyword seems to be ignored and not setting the global variable sort_keywords on Windows machines.