convert gfp* instructions to python and add tests