modified bin2fp.py