Cleaned up routes.py