removed re.findall from code and replaced with re.search due to 32-bit python 2.7.5 problem