API with args object containing configuration parameters

def main(args):
    """API with args object containing configuration parameters"""
    global logging, log

    args = parse_args(args)
    logging.basicConfig(format=LOG_FORMAT,
                        level=logging.DEBUG if args.verbose else logging.INFO,
                        stream=sys.stdout)
    df = cat_tweets(path=args.path, verbosity=args.verbose + 1, numtweets=args.numtweets, ignore_suspicious=False)
    log.info('Combined {} tweets'.format(len(df)))
    df = drop_nan_columns(df)
    save_tweets(df, path=args.path, filename=args.tweetfile)
    geo = get_geo(df, path=args.path, filename=args.geofile)
    log.info("Combined {} tweets into a single file {} and set asside {} geo tweets in {}".format(
        len(df), args.tweetfile, len(geo), args.geofile))
    return df, geo