 fix regex, add exception and pep8
 fix regex, add exception and pep8

AntonioJBT/CGATPipeline_core,AntonioJBT/CGATPipeline_core,CGATOxford/CGATPipelines,CGATOxford/CGATPipelines,CGATOxford/CGATPipelines,CGATOxford/CGATPipelines,CGATOxford/CGATPipelines,AntonioJBT/CGATPipeline_core,AntonioJBT/CGATPipeline_core