Update endpoint.py

Removed redis