Rework the mkwin script (Python not working yet). (dm)