Create immhook.py