Update chain.py

typo