spaces_length = ((the expected length to make them all equal - the length of the task name) / 2)
and then replace the task name with:
(' ' * space_length[0]) + task_name + (' ' * spaces_length[1])
spaces_length = ((the expected length to make them all equal - the length of the task name) / 2)
and then replace the task name with:
(' ' * space_length[0]) + task_name + (' ' * spaces_length[1])