Preprocess Text Function Python Parameters