Write registry for Python on windows