Python parser for apache logs