Fix for missing regex module for python2.6 users