SeriesParser unit tests. PEP8 cleanups.