os.environ['nodosfilewarning'] = "True" should have been:
os.environ['CYGWIN'] = "nodosfilewarning"
Now fixed.