Preprocess Text Function Python Format Print Statement