Update hex_viewer.py

- FIX: bits and bytes conversion issue