Python Rest Framework Code Snippets