sed command line tool has been replaced with python str.replace