Code style changes and documentation
Fixes the code using python black and flake8.
Adjust the logic around detecting if repo_from was provided.
Document the ``repo_from`` argument in the API documentation.
Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr></pingou@pingoured.fr>