+ fixes #0001505: Fix multiple bugs in Idf.py