remove raw python docstrings except where necessary