Added support for cursors in python client.