Fixed bug in regex matching for Python eval tests