Correct syntax for code blocks in sphinx

I fixed the syntax of some docstrings to remove artifacts in the sphinx output.