added the 'flags' argument to sre_compile.compile()