Fixed compile error and little mistake in the python client