Python implementation of squarify treemap layout algorithm