Update heurisch.py

Solved errors caused because of special functions like fresnels