def disable_warnings(_option, _opt_str, _value, _parser):
 rootlogger = logging.getLogger('')
 rootlogger.setLevel((logging.WARNING + 1))

def disable_warnings ( _option , _opt_str , _value , _parser ) : rootlogger = logging . getLogger ( '' ) rootlogger . setLevel ( ( logging . WARNING + 1 ) )
sets the location variable in the parser to the filename in question .