Fix almost all PEP257 warnings for background.py.

[1780]