pathsmap works with big(>10Mb) files thousands times faster
now works with lines array and write them back with file.writelines( array)
and it appears much more effective, that to read all data, change it and write all data back
( manipulating 10Mb string was a wrong way )