CI and build updates for PEP517, Black, Import ordering
Minor functionality changes including the addition of resource_groups. But the main changes here are refactoring to use Black code formatting and enforce an ordering on the import statements. These are not functional changes and should be a no-op from a user perspective.