python script to generate partition plans started