Moved around the main file to hopefully make py2exe work