Palletizing with Python