* Use raw string for re pattern
* Trim trailing whitespaces from docstrings and code
* Use isinstance() instead of type() for typechecking
* Remove unused imports
* Create a new update_profile method to update a users own profile
* Update update_profile.py
* Update update_profile.py
* Update update_profile.py
* Update update_profile.py
Co-authored-by: Dan <14043624+delivrance@users.noreply.github.com>