Fix runtests and small pep8 error
Split extract_series