refactored gpgtestwindows.py