Fix the python dependency hiearachy