Python client: removed unnecessary code