Cleaned up API views.py file
Cleaned up API views.py file #2