Format code using Black

BuildStream and bst-plugins-container both use Black to format their code. It seems a little strange that this repo doesn't. I think we should do so for a consistent coding style under the BuildStream umbrella.