Move new task logic added in bdf37491be3b9 to wikibugs.py