Add adaptation script: adapt_sugar_functions.py [skip ci]