FIX: Python3-compat and slight optimization in freefoam-log