first draft of python client