Parse Files Using Regex In Python