These could be context managers:
```python
with open(mapping_file, 'rU') as mapping_fp:
    mapping_dict, comments = parse_mapping_file_to_dict(mapping_fp)
```