Refactored helper functions in views.py into utils.py. Instead of having a global dictionary object for user library data, helper functions now mutate a dictionary passed in as a parameter.