float_to_hex.py: Make compatible with both Python3 & Python2