update for python on win-7
format code