Update impi.py

Added a debug error statement