def split32(data):
 all_pieces = []
 for position in range(0, len(data), 32):
  piece = data[position:(position + 32)]
  all_pieces.append(piece)
 return all_pieces

def split32 ( data ) : all_pieces = [ ] for position in range ( 0 , len ( data ) , 32 ) : piece = data [ position : ( position + 32 ) ] all_pieces . append ( piece ) return all_pieces
split data into pieces of 32 bytes .