def run_election(args):
    """Initiate and manage elections"""

    b = BigchainDB()

    # Call the function specified by args.action, as defined above
    globals()[f'run_election_{args.action}'](args, b)
Initiate and manage elections
bigchaindb/commands/bigchaindb.py