Made ifc.py compatible with python2

Hi Thomas,
What about this little change to make it compatible with python2? Apparently it works with py3 too.
Cheers
Yorik