Fixed bernoulli.py to only reset 0th element of term count