Fixing a few imports and name resolution in user_message.py

Found a couple typos and potential NameErrors in user_message.py, I think these commits cover them