Remove cruft from Python wrapper