def memsquare(d, filename, base_address, blocksize, pixelsize = 4096, addr_space = 'arm'):
    b = categorize_block_array(d, base_address, blocksize, pixelsize, addr_space=addr_space)
    w = png.Writer(len(b[0])/3, len(b))
    f = open(filename, 'wb')
    w.write(f, b)
    f.close()
    print filename % 'Wrote %s'
dataset/ETHPy150Open scanlime/coastermelt/backdoor/memsquare.py/memsquare/swapped operands of `%`