def printDisk(disk): print defrag_disk.formatDisk(disk, headers = True, blockNumbers = True)
def saveDisk(disk, filename): outFile = open(filename, 'w') outFile.write(defrag_disk.formatDisk(disk)) outFile.close()