Minor changes in docstrings for compatibility with Python versions below and above 2.7