This way of running luigi tasks is useful if you want to get some dynamic parameters from another source, such as database, or provide additional logic before you start tasks.
Another way to start tasks from Python code is using luigi.build(tasks, worker_scheduler_factory=None, **env_params) from luigi.interface module.