call the method self.handle_template with 2 arguments: value under the 'template' key of the options dictionary and base_subdir.
template_dir = self . handle_template ( options [ 'template' ] , base_subdir )