Try to open the input file

def try_opening_file(self):
        '''Try to open the input file'''
        if os.path.isfile(self.path):
            self.file = open(self.path, 'r')
            self.file_is_opened = True