series.py mathematical series

Exceptions (SyntaxError, TypeError, NameError and AttributionError)
Syntax errors in lines 32 and 35.