gfpy/gfalg.py