Apply PEP8 to build_docs.py

WARNING: I don't think this is covered in unit testing; and I don't know how to run it locally...