expanded generate_pdf with locale param

Added:
- expanded generate_pdf fn with forcing locale by GENERATED_DOCS_LOCALE (django settings),
- brand new fn *switch_language* in brand new file *utils.py*,
- flake8 fixes.