1369 - Integrate ensure_dependencies.py script

**This is a work-in-progress and not to be merged yet.**