Fix generating of sre_constants.h on Python 3.