Use code tags where needed.
No need to say 'PEP 8' twice.
Declare code block language, fix formatting
Highlight examples as ReStructuredText.