def int_to_ip(ip, ip_type):
    if ip_type == '6':
        IPKlass = ipaddr.IPv6Address
    elif ip_type == '4':
        IPKlass = ipaddr.IPv4Address
    return str(IPKlass(ip))
Return all keys in session object
dataset/ETHPy150Open rtucker-mozilla/mozilla_inventory/core/utils.py/int_to_ip--crossover with--dataset/ETHPy150Open MitchellChu/torndsession/torndsession/session.py/SessionManager.keys