Add ifname macro for python files