fb.py refactor