Added argument to get_mag_path.
PEP8 on utils.py