'Convert a string to uppercase hexidecimal'

def convert_to_hex(self, number):

    num = int(number)
    try:
        hex_num = ('%X' % num)
        return hex_num
    except:
        raise self.__bug_handler
