Change to pythonw  python with window not console
fix some bugs and change to pythonw