fibd.py attempt