fixed errors from py script (too much replace)