PEP8 Need to have a single space after if, elif, else keywords.  Eg.

```python
if (line[0] == "Spectrum name"):
```