Revert "Create pir.py". This will be resubmitted with code review

This reverts commit 6b59c7ba4247db0d32710832dd21b3dadb6e1663.