ignore long lines in python; edit files by extension/grep string