partitioned domain analysis code into penne.py script.