@staticmethod
def int_to_hex(intval):
    """A convenience function, use format to convert int to hex"""
    if type(intval) == 'string':
        intval = int(intval)
    return '{:02}'.format(intval, 'x')
