Better compatibility with recommended Python style

use double quoted docstrings as required by pep 257

also remove some extra whitespace