Automate sorting of imports
There is a common convention for ordering of module-level imports in Python: standard library, third party, and current package imports in three spearate groups.
We have mostly adhered to this convention, but not rigorously. Use isort to automatically sort imports and also check import order.