Preprocess Text Function Python Syntax For Input