This will throw an exception if the file could not be read. if you are not concerned about this you could also inline this:

~~~~~~
re.findall(regex, open(fpath).read())
or 
re.compile(regex).findall(open(fpath).read())
~~~~~~~