fixed stray quotation marks in Python docstrings

Same as #2818 but rebased onto dev_5_0