Python library for parsing log files