'Initialization of third-party libraries
Setting interpreter history.
Setting appropriate completer function.
:return:'

def setup(self):

    if (not os.path.exists(self.history_file)):
        open(self.history_file, 'a+').close()
    readline.read_history_file(self.history_file)
    readline.set_history_length(self.history_length)
    atexit.register(readline.write_history_file, self.history_file)
    readline.parse_and_bind('set    enable-keypad    on')
    readline.set_completer(self.complete)
    readline.set_completer_delims('     DCTB \n;')
    readline.parse_and_bind('tab:    complete')
