hmm, why not

```python
txt = f.read()
cpuset = re.match("^Cpus_allowed_list...", txt, re.M)
```