Hexadecimal visualization using Python