Python implementation of optimum pool racking.