Put check around windsave command in python, so only rank0 writes