def ihex_(i):
    """
    Trim the 0x and any L from a hex string::

        assert ihex_(0xccd) == 'ccd' 
        assert ihex_(0xccdL) == 'ccd'    # assumed

    """
    xs = hex(i)[2:]
    xs = xs[:-1] if xs[-1] == 'L' else xs 
    return xs