To load the lidar dummy scans in all_scans.txt, use python pickle: with open('path/to/all_scans.txt', 'rb') as fp: all_scans = pickle.load(fp)