Update for changes in ap2-python.