with open('original_filename') as original:
    for line in original:
        integers = [(int(i) - 1) for i in line.split()]
data.append(integers)
List of strings to integers while keeping a format in python