Create fbff.py

Function definitions
+ Those functions were already exist (though they were rewritten a bit)