Replace A Pattern In Python Using Pip