PySed is a Sed-like Python3 module, to do basic text manipulation functions, To install: Place the pysed.py module file under your Python3 path Inside your Python3 program/script type: import pysed