Update Python API for v2.1 of web services