Python script to autogenerate and test regular expressions to parse bro log files