Use getattr instead of task.__dict__
Use related_name to rename Task.taskkeyword_set to keyword_set