Nitpick: can you put the return statements at the end and make shorter? 

    scaled = complex_expression
    return scaled