Python Grep Tool