#NEWLINE# def main( argv = None ) : #NEWLINE# #INDENT# '\n    This is the main thread of execution\n\n    :param argv: list of command line arguments\n    ' #NEWLINE# exit_code = 0 #NEWLINE# if ( argv is None ) : #NEWLINE# #INDENT# argv = sys . argv #NEWLINE# #UNINDENT# try : #NEWLINE# #INDENT# init ( argv ) #NEWLINE# make_backup_files ( ) #NEWLINE# #UNINDENT# except Exception as e : #NEWLINE# #INDENT# _handle_except ( e ) #NEWLINE# exit_code = 1 #NEWLINE# #UNINDENT# finally : #NEWLINE# #INDENT# shutdown ( ) #NEWLINE# return exit_code