def normalize_memory(self, intcode):
    if (type(intcode) is str):
        return list(map(int, intcode.split(',')))
    elif (type(intcode) is list):
        if (type(intcode[0]) is str):
            return list(map(int, intcode))
        else:
            return intcode
    else:
        raise Exception('Corrupt intcode')
def normalize_memory(self, intcode):
    if (type(intcode) is str):
        return list(map(int, intcode.split(',')))
    elif (type(intcode) is list):
        if (type(intcode[0]) is str):
            return list(map(int, intcode))
        else:
            return intcode
    else:
        raise Exception('Corrupt intcode')