PEP8 compliance and doc formatting fixes.