<filename>setup.py
from distutils.core import setup
import py2exe

setup(console=['pyremotereboot.pyw'])
<filename>setup.py
from distutils.core import setup
import py2exe

setup(console=['pyremotereboot.pyw'])