Merge pull request #576 from jouve/readline

avoid reading whole file in IsPythonFile