Tests: pathlib used where appropriateAlso fixed various pylint errors and style issues.
Tests: style.
Python: supporting ASGI legacy protocol.Introducing manual protocol selection for 'universal' apps and frameworks.