I\'ve been searching through SO for a while now trying to come up with an answer to this but due to my inexperience with programming I don\'t understand much of the document
from distutils.core import setup import py2exe setup(console=['Avril.py'])
cd C:\Python27\
python setup.txt py2exe
Source: Manvir Singh