Initial Python port of --check-requirements