Refactoring API's viewsets to views.py and making cosmetic changes throughout