Update wfapi.py