<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def int_to_hex(i):
 """Create a hex-representation of the given serial. 'BC:61:4E' """

    s = hex(i)[2:].upper()
    if six.PY2 is True and isinstance(i, long):  # pragma: only py2  # NOQA
        # Strip the "L" suffix, since hex(1L) -> 0x1L.
        # NOTE: Do not convert to int earlier. int(<very-large-long>) is still long
        s = s[:-1]
    return add_colons(s)