Parser for dealing with access.log in Python