Preprocess Text Function Python Format Print