Updated api/v1.py as per comments