Minor changes to auto_partition.py