series.py

Corrected series.py to correctly handle an input of 0 for all three functions.
This shebang line is incorrect for most POSIX systems.