Rewrote find long lines in python