substitute the result for connection. get the value under the 'table_name_filter' key of the options dictionary, substitute it for table_name_filter.
table_name_filter = options . get ( 'table_name_filter' )