Changed 'exit()' to 'sys.exit()'. Also added 'raw_input' lines to keep console window from closing.