modified fp2bin.py