I can not help much more since i am not using windows, but it seems that there is a problem with the \$DOT_SAGE environment variable being understood as /dot_sage/ directory.
import os