Refactoring the sdc-BE-init python scripts