def to_hex(payload):
    """
    Converts an int or long to hex but removes the "0x" at the start.

    @rtype:  str
    @return: A string representing the number in hex without "0x".
    """
    return hex(payload)[2:]