python script to generate minimal/full-dim representation