Removed yaml import from api/views.py

I'm not sure why it's needed at the moment so it's gone for now.
If someone needs it again please commit with all the functionality
included to give us a better context.