Create wfapi.py