code: def atlas_inventory_to_string( inv ):
      
      ret = ""
      for i in range(0, len(inv)):
          for j in range(0, 8):
              bit_index = 1 << (7 - j)
              val = (ord(inv[i]) & bit_index)
              if val != 0:
                  ret += "1"
              else:
                  ret += "0"
  
      return ret
docs: Inventory to string (bitwise big-endian)