':param width: The width of the string to generate
:param height: The width of the string to generate'

def gen_representation(self, instr, width, height):

    linecount = (lambda ln: sum(map(ord, (char for char in ln))))
    split = instr.split('\n')
    length = max(len(split), width)
    (step, extra) = divmod(length, width)
    sumlinecounts = (lambda st, en: sum((linecount(ln) for ln in split[st:en])))
    for (i, j) in enumerate(xrange(0, (length - extra), step)):
        accum = sumlinecounts(j, (j + step))
        self.parsed_instr[i] = (accum % height)
    if extra:
        self.parsed_instr[i] = ((accum + sumlinecounts((j + step), None)) % height)
