Update p_IV.py

Formatted p_IV for lean look.