Update Idf.py

Fixes from bug 1366 http://www.freecadweb.org/tracker/view.php?id=1366