updated Python client