python 3.7 support: Track cpython removal of re._pattern_type