a reimplementation of CPython 2.4's _sre in pure Python