Fix upstream #311

Use method `docstring()` instead of property `doc`
Use property `description` instead of `get_code`