use re2 in simple parser
Python regular expression engine does sometime use backtracking, which can lead to even exponential slow downs in pathological cases, google re2 avoids this by always using finite automata, and is generally much faster.
We should switch to it, currently python wrapper for it has some issues: for example match seems to be broken, so these things should be investigated