Added return call in index.py