Update wmapi.py