Fix for missing regex module for python2.7 users