Python Find Line In String Function