Update hex2bin.py

cleaner code