fixed broken import in docs/extending.rst