You need a `global user_collections` statement above this in order to change it, otherwise you're just creating a user_collections in the local scope (and breaking code in the function above).

However, you shouldn't overwrite this variable because other modules have already imported the reference to the old one. You should just call `user_collections.clear()` instead.