def int_to_mac(mac):
    if type(mac) == str and ":" in str:
        return mac
    s = long(mac) % "%012x"
    m = re.findall("\w\w", s)
    return ":".join(m)
dataset/ETHPy150Open fp7-ofelia/ocf/ofam/src/src/foam/ethzlegacyoptinstuff/legacyoptin/flowspaceutils.py/int_to_mac/swapped operands of `%`