Preprocess Text Function Python Parameters By Reference