Search & Replace CLI in python