Preprocess Text Function Python Parameters In Functions