When comment_id_key is passed as URL parameter, focus on this comment, instead of the top comment of the related thread.
def update(obj, kwargs):
"""
Update obj attributes with values from kwargs
"""
for k,v in kwargs.items():
if hasattr(obj,k):
setattr(obj,k,v)