code: def replace(self, infile):
          '''Replace: 任意の箇所のバイト列と 同サイズの任意のバイト列を入れ換える
          '''
          gf = infile[31:]
          same_size_index = []
          while len(same_size_index) <= 1:
              index = random.randint(0,len(gf)-1)
              index_len = len(gf[index])
              same_size_index = [i for (i,g) in enumerate(gf) if len(g) == index_len]
          else:
              same_size_index = random.choice(same_size_index[:])
          gf[index], gf[same_size_index] = gf[same_size_index], gf[index]
          return infile[:31] + gf replace(self, infile):
          '''Replace: 任意の箇所のバイト列と 同サイズの任意のバイト列を入れ換える
          '''
          gf = infile[31:]
          same_size_index = []
          while len(same_size_index) <= 1:
              index = random.randint(0,len(gf)-1)
              index_len = len(gf[index])
              same_size_index = [i for (i,g) in enumerate(gf) if len(g) == index_len]
          else:
              same_size_index = random.choice(same_size_index[:])
          gf[index], gf[same_size_index] = gf[same_size_index], gf[index]
          return infile[:31] + gf
docs: Replace: 任意の箇所のバイト列と 同サイズの任意のバイト列を入れ換える