Python nexus client cleanup