Is that
Output:dishash all
part of the 'output'? If it is, change the slicing digit to 4 in the loop expression:for line in output.decode('utf-8').split('\n')[4:]: