where '%s' is replaced with top_dir. call the function handle_extensions with 2 arguments: value under the 'extensions' key of the options dictionary,
extensions = tuple ( handle_extensions ( options [ 'extensions' ] , ignored = ( ) ) )