'Load history from a text file in user home directory'

def load_history(self, obj=None):

    if osp.isfile(self.LOG_PATH):
        history = [line.replace('\n', '') for line in open(self.LOG_PATH, 'r').readlines()]
    else:
        history = []
    return history
